package com.example.service;

import com.example.domain.dto.QuestionDTO;
import com.example.domain.po.AnswerRecord;
import com.example.domain.po.QuestionType;
import com.example.util.PageBean;

import java.util.List;
import java.util.Map;

public interface QuestionService {
    List<QuestionDTO> listByRandom();

    void record(Map<String, Object> map);

    List<AnswerRecord> listRecordByUid(Integer uid);

    List<QuestionDTO> listByQTypeId(Integer qTypeId);

    PageBean<QuestionDTO> list(Integer pageNum, Integer pageSize, String topic, Integer type, Integer qtypeId);

    List<QuestionType> listQuestionType();

    QuestionDTO getById(Integer id);

    void edit(QuestionDTO questionDTO);

    void insert(QuestionDTO questionDTO);

    void deleteById(Integer id);

    List<QuestionDTO> listAll();
}
